package com.furongji.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

public enum ArticleStatusEnum {

    //未发布
    Draft("Draft", "未发布"),
    // 已发布
    Normal("Normal", "已发布");

    @EnumValue
    private final String status;

    private final String description;

    ArticleStatusEnum(String status, String description) {
        this.status = status;
        this.description = description;
    }

    @JsonValue
    public String getStatus() {
        return this.status;
    }

}
